#ifndef _THROTTLE_H_
#define _THROTTLE_H_

//enum
//{
//	STABLIZE=1,
//	ALT     =2,
//	AUTO    =3,
//	LAND    =4,
//	_3D     =5,
//};

typedef struct
{
	float throttle;
	float savethrottle;
	unsigned char idlethrflag;
	unsigned short idlethrcnt;
}THR;

extern THR Thr;
void Throttle_update(unsigned char thrmode,float dt);
void Throttle_Stablize_Runtask(float dt);
void Throttle_Alt_Runtask(float dt);
void Throttle_Auto_Runtask(float dt);
void Throttle_Land_Runtask(float dt);
void Land_Check(void);
void Land_Strikcheck(void);
float Throttle_Get(void);
#endif


